package com.atguigu.cloud.apis;

import com.atguigu.cloud.utils.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: huahua
 * @Date: 2024/6/13 0013
 * @Time: 15:05
 * @Description:
 */
@FeignClient(value = "nacos-payment-provider",fallback = PayFeignSentinelApiFallBack.class)
public interface PayalibabaFeignApi {
    @GetMapping(value = "/pay/alibaba/info")
    public ResultData<String> getInfo();


    @GetMapping("/pay/nacos/get/{orderNo}")
    public ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}
